import { http, download } from '../../apis/request'
// this.prototype.$http = http;
const request = http
let shareTemplate = {
    //获取礼物列表
    getGift(state, pageNumber, pageSize){
      return request("/other/getGift", {state, pageNumber, pageSize})
    },
    //修改礼物状态
    updateGiftState(giftId, state){
      return request("/other/updateGift", {giftId, state})
    },
    // 增加礼物
    insertGift(data){
      return request("/other/insertGift", data)
    },
    // 修改礼物
    updateGift(data){
      return request("/other/updateGift", data)
    },
    // 查询礼物
    showGift(data){
      return request("/other/showGift", data)
    },
}
export default shareTemplate
